package com.youpai.platform.common.util;


/**
 * @date: 2021/11/29 23:03
 * @author: Anna
 * @version: 1.0
 * @description: 设备信息
 */
public class DeviceContext {

    private static final ThreadLocal<Integer> deviceThreadLocal = new ThreadLocal<>();

    public static void setAppId(Integer appId) {
        deviceThreadLocal.set(appId);
    }

    public static int getAppId() {
        return deviceThreadLocal.get();
    }
}
